package com.yuwubao.hz_International.entities.repository;

import com.yuwubao.hz_International.entities.RechargeConfigEntity;
import org.jetbrains.annotations.NotNull;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by yangyu on 2018/1/25.
 */
public interface RechargeConfigRepository extends JpaRepository<RechargeConfigEntity, Integer>, JpaSpecificationExecutor<RechargeConfigEntity> {
    @Query(value = "SELECT * from recharge_config ORDER BY id DESC limit 1",nativeQuery = true)
    RechargeConfigEntity findLast();
}
